//
//  DYPrintParse.h
//  DYPrintSDK
//
//  Created by mr.ye on 2023/11/22.
// 解析类

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface DYPrintParse : NSObject

//打印状态解析(全部移动走)
+ (BOOL)imageCompeleteWithData:(NSData *)data;
//信息解析
+ (NSMutableDictionary *)infoWithData:(NSData *)data;
//检查打印机状态值
+ (NSInteger)parsePrinterStatus:(UInt8)statusByte;
//解析时间
+ (NSUInteger)closeTimeWithData:(NSData *)data;
//解析型号
+ (NSString *)mdStringWithData:(NSData *)data;
//解析信号
+ (NSUInteger)creditWithData:(NSData *)data;
//解析包大小
+ (NSUInteger)mtuWithData:(NSData *)data;
//解析浓度
+ (NSUInteger)thickWithData:(NSData *)data;
//解析更新时候的信号值
+ (NSUInteger)updateCreditWithData:(NSData *)data;

//计算Eec
+ (Byte)calculateEnc:(Byte *)data length:(NSUInteger)length;

+ (NSData *)intToByteArray4:(NSUInteger)inter length:(NSUInteger)length;
@end

NS_ASSUME_NONNULL_END
